<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<include file='Common:head'/>
<body>
<form action="{:U('Banner/editDo')}" method="post" enctype="multipart/form-data">
<div class="formbody">
  <div class="formtitle"><span>基本信息</span></div>
  <ul class="forminfo">
    <li>
      <label>幻灯片</label>
        <input type="file" name="pic" id='pic'/>
    </li> 
	<li>
        <label>名称</label>
        <input name="name" type="text" class="dfinput" value="{$cont['name']}"/>
        <i>标题不能超过200个字符</i>
    </li>
    <li>
        <label>连接</label>
        <input name="url" type="text" class="dfinput" value="{$cont['url']}"/>
        <i>填链接请讲 http:// 协议加上否则无法显示  ！ 不填将默认链接首页面  </i>
    </li>
    <li>
        <label>排序</label>
        <input name="sort" type="text" class="dfinput" style="width:50px;" value="{$cont['sort']}"/>
        <i>请填写小于 4 位的数字</i>
    </li>
	<li>
      <label>&nbsp;</label>
      <input type="hidden" name="id" value="{$cont['id']}">
      <input type="hidden" name="pic" value="{$cont['pic']}">
      <input name="" id='button' type="submit" class="btn" value="确认保存"/>
    </li>
  </ul>
</div>
</form>
<div style="margin-left:40px;">

	<div style="width:200px; height:auto; float:left; margin-bottom:31px; margin-right:5px;">
        <div>
            <if condition=" $cont['pic'] eq '' "><img src="<?php echo C('NO_PIC');?>" width="200" height="200">
            	<else /><img src="__ROOT__/{$cont['pic']}" width="200" height="150">
            </if>
        </div>
    </div>

</div>
</body>
</html>
